package com.siashan.unipay4j.wx.transfer;

import com.siashan.unipay4j.core.IBaseEnum;
import com.siashan.unipay4j.core.transfer.TransferState;

/**
 * 微信转账状态
 *
 * @author  siashan
 * @since  v1.0.1
 **/
public enum WxTransferErrCode implements IBaseEnum<String> {
    /**
     * 转账成功
     */
    SUCCESS("SUCCESS", "转账成功",TransferState.SUCCESS),
    /**
     * 转账失败
     */
    FAILED("FAILED", "转账失败",TransferState.FAILED),
    /**
     * 处理中
     */
    PROCESSING("PROCESSING", "处理中",TransferState.PROCESSING),
    /**
     * 银行退票
     */
    BANK_FAIL ("BANK_FAIL", "银行退票",TransferState.BANK_FAIL),
    ;
    private String value;
    private String desp;
    private TransferState transferState;

    WxTransferErrCode(String value, String desp, TransferState transferState) {
        this.value = value;
        this.desp = desp;
        this.transferState = transferState;
    }

    @Override
    public String getValue() {
        return value;
    }

    public void setValue(String value) {
        this.value = value;
    }

    @Override
    public String getDesp() {
        return desp;
    }

    public void setDesp(String desp) {
        this.desp = desp;
    }

    public TransferState getTransferState() {
        return transferState;
    }

    public void setTransferState(TransferState transferState) {
        this.transferState = transferState;
    }
}
